package com.scau.hwadee.examination.service.impl;

import com.github.pagehelper.PageInfo;
import com.scau.hwadee.examination.entity.School;
import com.scau.hwadee.examination.mapper.SchoolMapper;
import com.scau.hwadee.examination.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author YHX
 * @date 2019/7/30 17:23
 * description
 */
@Service
public class SchoolServiceImpl implements SchoolService {
    @Autowired
    private SchoolMapper schoolMapper;

    @Override
    public PageInfo<School> getAllSchools(int pageNum, int pageSize) {
        return new PageInfo<>(schoolMapper.selectAllSchools(pageNum,pageSize));
    }

}
